'use client';
import {AppProgressBar} from 'next-nprogress-bar';
import {memo, ReactNode, Suspense} from 'react';

const ProgressProvider = memo(function ProgressProvider ({children}: {children: ReactNode}) {
    return (
        <>
            {children}
            <Suspense>
                <AppProgressBar height="4px" color="#1677ff" options={{showSpinner: false}} />
            </Suspense>
        </>
    );
});

export default ProgressProvider;
